package cn.com.lei.du.service;

import cn.com.lei.du.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service01")
public interface UserService {

    @PostMapping("/user/findById/{id}")
    User findById(@PathVariable("id") String id);

    @PostMapping("/user/addUser")
    User addUser(@RequestBody User user);
}
